home *** CD-ROM | disk | FTP | other *** search
- Path: urals.jpl.nasa.gov!user
- From: mlj@tazboy.jpl.nasa.gov (Mose L. Johnson)
- Newsgroups: comp.lang.c++
- Subject: Unresolved Templates during link time in Borderland 4.5
- Date: Mon, 22 Jan 1996 08:38:18 -0800
- Organization: Jet Propulsion Laboratory
- Message-ID: <mlj-2201960838180001@urals.jpl.nasa.gov>
- NNTP-Posting-Host: urals.jpl.nasa.gov
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
-
- I am posting this question for another usenet user who is unable to post.
- He can be e-mailed at:
-
- nigel5@pcman.demon.co.uk
-
-
- I noticed in your articles that you were using templates. I do not know
- how to post articles up to a group yet, so I thought I would E-Mail you,
- I hope you don't mind...
-
- Teplates (the noddy version...)
-
- I am using Borland C++ 4.5 at home, and some Irix-Silicon Grafix thing
- at work, and I want to write some basic templates. I know Borland has a
- whole load, but I am learning and want to play at my own)
-
- I have created a basic list template class. LList<T>::...
-
- I have typedef'ed an int version, that I have included in the llist.h
- file. I want to create, say a float list...
-
- typedef LList<float> FloatList;
-
- in my main.cpp
-
- When I compile it.. no probs. when Borland links it there are linker
- errors saying that LList<float>::LList<float>() is un resolved.
-
- I have found the option that allows the code to compile.. (teplates are
- global!) and as long as I tell the template code there is to be an <X>
- version there is no problem, but that means I can't compile my LList
- into an object to link into anything.
-
- The irix compileer at work has a pre-compile where it picks up all of my
- template casts.
-
- Any help would be very much appreciated.
- Thanx
- Nigel. (Johnson.. I just realized.!!)
- @@@@@@@ @@@@@@@ @@@@@@@@@@ @@@@@@ @@@ @@@
- @@! @@@ !@@ @@! @@! @@! @@! @@@ @@!@!@@@
- @!@@!@! !@! @!! !!@ @!@ @!@!@!@! @!@@!!@!
- !!: :!! !!: !!: !!: !!! !!: !!!
- : :: :: : : : : : : :: :
-
- --------------------------------------------------------------------------
- | Iluminating the world with nether regional photonic amplitude |
- --------------------------------------------------------------------------
-